package com.easyhouse.mapper;

import com.easyhouse.common.pojo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    List<Product> selectAllProduct();

    List<Product> selectProduct(@Param("index") int index,@Param("end") int end);

    int getCount();

    void saveProduct(Product product);

    void editProduct(Product product);

    void deleteProductById(@Param("houseId") String houseId);

    Product seelctProductById(String houseId);

    List<Product> selectSeckillProduct();


    List<Product> selectProductBySellStatus();

    List<Product> selectProduct2(@Param("index") int index,@Param("end") int end);

    int getCount2();


}
